
package com.scs.application.modules.base.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scs.application.core.service.ITreeService;
import com.scs.application.modules.base.entity.HospitalCatalog;
import com.scs.application.modules.base.request.HospitalCatalogQueryRequest;
import com.scs.application.modules.base.vo.HCatalogVO;
import com.scs.application.modules.base.vo.HospitalCatalogVO;
import com.scs.application.modules.thirdparty.dto.HospitalCatalogDTO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 医院品类 service 接口
 *
 */
public interface HospitalCatalogService extends ITreeService<HospitalCatalog> {

    List<HospitalCatalog> list(HospitalCatalogQueryRequest request);

    IPage<HospitalCatalogVO> page(HospitalCatalogQueryRequest request);

    List<HCatalogVO> listForVO();

    @Transactional(rollbackFor = Exception.class)
    List<HCatalogVO> saveDTO(List<HospitalCatalogDTO> dtos);
}
